from django.db import models


class CsStockGoods(models.Model):
    order_id = models.PositiveIntegerField(default=0)
    shop_id = models.PositiveIntegerField()
    cashier_id = models.PositiveIntegerField()
    goods_id = models.PositiveIntegerField()
    cost_price = models.DecimalField(max_digits=10, decimal_places=2)
    amount = models.DecimalField(max_digits=12, decimal_places=3)
    subtotal = models.DecimalField(max_digits=10, decimal_places=2)
    status = models.IntegerField()
    created = models.PositiveIntegerField()
    updated = models.PositiveIntegerField()

    class Meta:
        managed = False
        db_table = 'cs_stock_goods'
